<template>
  <div class="test-container">
        <loading v-show="this.isLoading"/>
        <button @click="isLoading = !isLoading">click me</button>
  </div>

  
</template>

<script>
import Loading from './index.vue';
export default {
    components:{
        Loading,
    },
    data(){
      return {
        isLoading:true,
      }
    },
   
}
</script>

<style scoped lang="less">
  .test-container{
    height: 90px;
    position: relative;
  }
</style>